package com.kehutong.webchat.entity;

import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import java.util.List;

/**
 * 公众号
 *
 * @Author: liuzhen (liuxing521a@163.com)
 * @Date: 20/4/13 上午9:08
 */
@Table(value = "t_member_wechat", comment="公众号客户")
public class MemberMap extends Entity {

	private static final long serialVersionUID = 296129229105462474L;

	protected MemberMap(String id) {
		super(id);
	}

	@Column(length = 64, comment = "公众号微信openId")
	private String mp_open_id;
	
	@Column(comment = "是否关注公众号")
	private boolean mp_subscribe;

	@Column(length = 64, comment = "公众号微信appId")
	private String mp_app_id;
	
	@Column(length = 64, comment = "小程序微信openId")
	private String mn_open_id;


	@Column(length = 64, comment = "小程序微信appId")
	private String mn_app_id;

	@Column(comment = "腾讯平台唯一id")
	private String unionid;
	
	@Column(comment = "客户通id")
	private String khtId;

	@Column(comment = "客户通企业编号")
	private List<String> companyNos;

	@Column(comment = "客户通企业名称")
	private List<String> companyNames;

	@Column(comment = "企业微信外部联系人的标识")
	private List<String> externalUserIds;

	@Column(comment = "逻辑删除")
	private boolean deleted;

	public String getMp_open_id() {
		return mp_open_id;
	}

	public void setMp_open_id(String mp_open_id) {
		this.mp_open_id = mp_open_id;
	}

	public boolean isMp_subscribe() {
		return mp_subscribe;
	}

	public void setMp_subscribe(boolean mp_subscribe) {
		this.mp_subscribe = mp_subscribe;
	}

	public String getMn_open_id() {
		return mn_open_id;
	}

	public void setMn_open_id(String mn_open_id) {
		this.mn_open_id = mn_open_id;
	}

	public String getKhtId() {
		return khtId;
	}

	public void setKhtId(String khtId) {
		this.khtId = khtId;
	}

	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public String getMp_app_id() {
		return mp_app_id;
	}

	public void setMp_app_id(String mp_app_id) {
		this.mp_app_id = mp_app_id;
	}

	public String getMn_app_id() {
		return mn_app_id;
	}

	public void setMn_app_id(String mn_app_id) {
		this.mn_app_id = mn_app_id;
	}

	public List<String> getCompanyNos() {
		return companyNos;
	}

	public void setCompanyNos(List<String> companyNos) {
		this.companyNos = companyNos;
	}

	public List<String> getCompanyNames() {
		return companyNames;
	}

	public void setCompanyNames(List<String> companyNames) {
		this.companyNames = companyNames;
	}

	public List<String> getExternalUserIds() {
		return externalUserIds;
	}

	public void setExternalUserIds(List<String> externalUserIds) {
		this.externalUserIds = externalUserIds;
	}
}
